﻿using System;
using System.Collections.Generic;
using YJKGeometryFuncs;

namespace YJKRoomBehavior
{
	public class ComparerLevel : IComparer<RoomData>
	{
		public int Compare(RoomData x, RoomData y)
		{
			if (Geometry.LessThan(x.Level, y.Level))
			{
				return -1;
			}
			return 1;
		}
	}
}
